package study.java.jdk.jdk8;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
public class User {
    private String code;
    private String name;
    private Date birthday;
    private Integer age;

    public User() {
    }

    public User(String code) {
        this(code, null);
    }

    public User(String code, String name) {
        this.code = code;
        this.name = name;
    }
}
